package com.spring5.learning.bean;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * @author xin
 * @version 1.0
 */
@Service
public class DogService {


    @Cacheable("dog")
    public void walk(Dog dog) {
        System.out.println("walk the dog " + dog.getName());
    }
}
